<%-- Copyright (c) 2002 BroadVision, Inc. All rights reserved              --%>
<%-- The product described in this manual may be protected by one or more  --%>
<%-- U.S. and International patents. The BroadVision One-To-One software   --%>
<%-- is covered by U.S. patent 5,710,887.                                  --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and the BroadVision logo are registered       --%>
<%-- trademarks, and BroadVision One-To-One is a trademark of BroadVision, --%>
<%-- Inc. IONA and Orbix are trademarks of IONA Technologies, Ltd. RSA,    --%>
<%-- MD5, and RC2 are trademarks of RSA Data Security, Inc. All other      --%>
<%-- trademarks, service marks, and trade names belong to their respective --%>
<%-- owners. BroadVision, Inc. disclaims any proprietary interest in the   --%>
<%-- marks and names of others.                                            --%>
<%--                                                                       --%>

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<script language="javascript" src="<%=request.getContextPath()%>/mc/js/date.js"></script>

<c:set var="viewBean" value="${emSegmentBrowseView}" />
<c:set var="viewBeanMap" value="${viewBean.map}" />

<c:set var="editIcon">
  <html:img page="/mc/images/action/icon_edit.gif" 
    width="15" height="15" border="0" styleClass="actionIcon"
    altKey="em.image.alt.edit" titleKey="em.image.alt.edit" bundle="em"/>
</c:set>
<c:set var="deleteIcon">
  <html:img page="/mc/images/action/icon_delete.gif"
    width="15" height="15" border="0" styleClass="actionIcon"
    altKey="em.image.alt.delete" titleKey="em.image.alt.delete" bundle="em"/>
</c:set>

<jsp:include page="/mt/common/pickerPopupHelper.jsp" flush="true" />

<!--start zone 5 content area-->
<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr>
    <td valign="top" width="100%">
      <div class="pageTitle">
        <bean-el:message bundle="em" key="em.segment.browse.uncategorized.pageTitle"/>
      </div>
      <div class="errorMessage"><html:errors bundle="em"/></div>

      <div>
        <jsp:include page="/mc/common/pagetab.jsp" flush="true" />
      </div>

      <div class="pageSubtitle">
        <span class="left">
          <bean-el:message key="em.segment.browse.uncategorized.pageSubTitle" bundle="em"/>
        </span>
        <span class="right">
          <html:form action="/em/segment/segmentNew.do">
            <input type=hidden name="currentCategoryOid" value="0">
            
            <!-- if no permit to create segment, disable create button -->
            <c:choose>
             <c:when test="${viewBeanMap.createType}">
                          <input type="button"  name="newSegmentBtn"
              class="inputButton"
              onClick="return createNewSegment(this.form, '/em/segment/segmentNew.do');"
              value="<bean-el:message bundle="em" key="em.segment.button.browse.newSegment"/>"/>
            </c:when>
            <c:otherwise>
            </c:otherwise>
          </c:choose>
          </html:form>
        </span>
      </div>
      <c:set var="segmentList" value="${emSegmentBrowseView.map.segmentList}" scope="request" />
      <jsp:include page="/em/segment/segmentListSection.jsp" flush="true"/>
    </td>
  </tr>
</table>
<!--end main content area here-->
